<template>
  <div class="footer">
    <div class="bottom">
      <div class="friend-link">友情链接:</div>
      <div class="footer-bottom"><a :href="item.dictValue" target="_blank" v-for="(item,index) in footerList" :key="index">{{ item.dictLabel }}</a>
      </div>
      <div class="footer-line">
        <hr>
      </div>
      <div class="company">Copyright © 2017-2025 石家庄天亮教育科技有限公司 备案号:冀ICP备17020003号</div>
    </div>
  </div>
</template>

<script>
import {footerLike} from "@/api/api";

export default {
  name: "Footer",
  data() {
    return {
      footerList: []
    }
  },
  methods: {
    courseInit() {
     footerLike().then(res => {
        (res);
        if (res.code == 0) {
          this.footerList = res.rows
        }
      })
    }
  },
  created() {
    this.courseInit()
  }
}
</script>

<style scoped lang="less">
.footer {
  background: #444546;
  color: #999;
  font-size: 14px;

  .bottom {
    width: 1200px;
    margin: auto;
    padding: 20px 0;
    color: #999;
    padding: 20px 0;
    overflow: hidden;

    .friend-link {
      text-align: left;
      font-size: 22px;
      margin: 16px 0;
    }

    /* 友情链接 */

    .footer-bottom {
      text-align: left;

      a {
        margin-right: 30px;
        font-size: 14px;
        color: #999;
      }
    }

    .footer-line {
      height: 1px;
      width: 1000px;
      //border: 1px solid rgb(84, 84, 84);
      margin: 24px auto;

      hr {
        margin-top: 0px;
      }
    }

    .company {
      text-align: center;
    }
  }
}
</style>